You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
caseTypeRef(_, sym, _) => primitiveOrClassToBType(sym) // Common reference to a type such as scala.Int or java.lang.String
191
191
caseClassInfoType(_, _, sym) => primitiveOrClassToBType(sym) // We get here, for example, for genLoadModule, which invokes typeToBType(moduleClassSymbol.info)
192
192
193
-
/* AnnotatedType should (probably) be eliminated by erasure. However we know it happens for
194
-
* meta-annotated annotations (@(ann @getter) val x = 0), so we don't emit a warning.
195
-
* The type in the AnnotationInfo is an AnnotatedTpe. Tested in jvm/annotations.scala.
196
-
*/
197
-
case a @AnnotatedType(_, t) =>
198
-
debuglog(s"typeKind of annotated type $a")
199
-
typeToBType(t)
200
-
201
-
/* ExistentialType should (probably) be eliminated by erasure. We know they get here for
202
-
* classOf constants:
203
-
* class C[T]
204
-
* class T { final val k = classOf[C[_]] }
205
-
*/
206
-
case e @ExistentialType(_, t) =>
207
-
debuglog(s"typeKind of existential type $e")
208
-
typeToBType(t)
209
-
210
193
/* The cases below should probably never occur. They are kept for now to avoid introducing
211
194
* new compiler crashes, but we added a warning. The compiler / library bootstrap and the
212
195
* test suite don't produce any warning.
213
196
*/
214
197
215
198
case tp =>
216
-
currentUnit.warning(tp.typeSymbol.pos,
199
+
warning(tp.typeSymbol.pos,
217
200
s"an unexpected type representation reached the compiler backend while compiling $currentUnit: $tp. "+
218
201
"If possible, please file a bug on issues.scala-lang.org.")
219
202
220
203
tp match {
221
-
caseThisType(ArrayClass) =>ObjectRef// was introduced in 9b17332f11 to fix SI-999, but this code is not reached in its test, or any other test
0 commit comments