wrong error for method with name inline
: inline must be followed by an if
or a match
#11860
Labels
inline
: inline must be followed by an if
or a match
#11860
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0-RC2-bin-20210317-758782a-NIGHTLY
Minimized code
Output
Error
Expectation
According to the spec https://dotty.epfl.ch/docs/reference/soft-modifier.html inline should be treated as a normal identifier:
if
ormatch
class
,trait
, etc...and the code should compile
The text was updated successfully, but these errors were encountered: