mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
io: deprecate io.make_reader (not needed anymore)
This commit is contained in:
@@ -13,6 +13,8 @@ pub interface Reader {
|
||||
// (e.g. for use in struct initialisation)
|
||||
// (this shouldnt need to be a thing but until coercion gets made better
|
||||
// it is required)
|
||||
[deprecated: 'use just `x` instead of `io.make_reader(x)`. Interfaces are now checked against all types.']
|
||||
[deprecated_after: '2021-05-27']
|
||||
pub fn make_reader(r Reader) Reader {
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user