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.
1 parent 328ded4 commit 7a5f271Copy full SHA for 7a5f271
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1150,7 +1150,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1150
// classes defined in a such arguments should not be entered into the
1151
// enclosing class.
1152
c.exprContext(mdef, exprOwner)
1153
- case None => c
+ case _ => c
1154
}
1155
1156
// necessary in order to mark the typed ahead annotations as definitely typed:
tests/pos/i1868.scala
@@ -0,0 +1,7 @@
1
+class Test[X](x: X) {
2
+ def checkSpecialization[Y](y: Y): X = {
3
+ def specMe[@specialized T]() = ()
4
+ x
5
+ }
6
+ private def checkNameStartsWith(prefix: String) = { (new Exception) }
7
+}
0 commit comments