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
classM {
defg[A](a: Any=null)(f: A) {}
}
traitI {
defm:M=???
}
classTestextendsI {
defg1[A](a: Any=null)(f: A) {}
deffoo(a: MissingType) {
m.g(/* use default */)(a)
}
}
error:
while compiling: <console>
during phase: typer
library version: version 2.10.0
compiler version: version 2.10.0
reconstructed args: -deprecation -classpath C:\Users\zgg\.sbt\boot\scala-2.10.0\lib\scala-compiler.jar;C:\Users\zgg\.sbt\boot\scala-2.10.0\lib\jansi.jar;C:\Users\zgg\.sbt\boot\scala-2.10.0\lib\jline.jar;C:\Users\zgg\.sbt\boot\scala-2.10.0\lib\scala-reflect.jar -unchecked -bootclasspath c:\tools\jdk1.6.0_25\jre\lib\resources.jar;c:\tools\jdk1.6.0_25\jre\lib\rt.jar;c:\tools\jdk1.6.0_25\jre\lib\sunrsasign.jar;c:\tools\jdk1.6.0_25\jre\lib\jsse.jar;c:\tools\jdk1.6.0_25\jre\lib\jce.jar;c:\tools\jdk1.6.0_25\jre\lib\charsets.jar;c:\tools\jdk1.6.0_25\jre\lib\modules\jdk.boot.jar;c:\tools\jdk1.6.0_25\jre\classes;C:\Users\zgg\.sbt\boot\scala-2.10.0\lib\scala-library.jar -Yrepl-sync
last tree to typer: Ident(a)
symbol: value a (flags: <param> <triedcooking>)
symbol definition: a: <error>
tpe: <error>
symbol owners: value a -> method foo -> class Test -> object $iw -> object $iw -> object $read -> package $line10
context owners: method foo -> class Test -> object $iw -> object $iw -> object $read -> package $line10
== Expanded type of tree ==
<error>
uncaught exception during compilation: java.lang.NullPointerException
java.lang.NullPointerException
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1131)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5467)
at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:29)
at scala.tools.nsc.typechecker.Typers$Typer.transformedOrTyped(Typers.scala:5658)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:2169)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5386)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:29)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
at scala.collection.immutable.List.loop$1(List.scala:164)
at scala.collection.immutable.List.mapConserve(List.scala:180)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:2870)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1862)
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1726)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5400)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5458)
at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:29)
at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2770)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:2870)
The example was distilled from typical Scala usage of Yammer's metrics library.
The text was updated successfully, but these errors were encountered:
The example was distilled from typical Scala usage of Yammer's metrics library.
The text was updated successfully, but these errors were encountered: