diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-17 12:36:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-17 12:37:03 +0100 |
commit | e59c0baaff669d54eb502b2142783d9f5d75e3b5 (patch) | |
tree | 305d9d44ac4b23e968699d2998d8f2a185e617bf /tests/pos/i523.scala | |
parent | 6b061b5b94fb4e13a97274b28e0ab9ac78b69f27 (diff) | |
download | dotty-e59c0baaff669d54eb502b2142783d9f5d75e3b5.tar.gz dotty-e59c0baaff669d54eb502b2142783d9f5d75e3b5.tar.bz2 dotty-e59c0baaff669d54eb502b2142783d9f5d75e3b5.zip |
More refined treatement of pattern type variables
Previously all lower case names were treated as variables
in patterns. But that made code like
x: cls
crash the compiler if `cls` was a class. Also, it owuld preventing
this idiom unless one wrote
x: `cls`
We now do it like scalac and treat lower case names as variables
only in arguments of types.
Diffstat (limited to 'tests/pos/i523.scala')
0 files changed, 0 insertions, 0 deletions