We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8513e1 + 57ccea1 commit 5bcbad2Copy full SHA for 5bcbad2
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -713,7 +713,11 @@ object Parsers {
713
if (t.isInstanceOf[ByNameTypeTree])
714
syntaxError(ByNameParameterNotSupported())
715
val tuple = atPos(start) { makeTupleOrParens(ts) }
716
- infixTypeRest(refinedTypeRest(withTypeRest(simpleTypeRest(tuple))))
+ infixTypeRest(
717
+ refinedTypeRest(
718
+ withTypeRest(
719
+ annotTypeRest(
720
+ simpleTypeRest(tuple)))))
721
}
722
723
tests/pos/annot.scala
@@ -24,5 +24,6 @@ class Test {
24
25
class C extends A @uncheckedVariance () with B @uncheckedVariance { val x = 10 }
26
27
+ val f: (Int => Int) @uncheckedVariance = ???
28
29
0 commit comments