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
Welcome to Scala version 2.10.0-RC3 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_07).
Type in expressions to have them evaluated.
Type:help for more information.
scala>caseclassA(c: Class[_])
<console>:7:warning: inferred existential typeOption[Class[_$1]] forSome { type_$1 }, which cannot be expressed by wildcards, should be enabled
by making the implicit value language.existentials visible.
This can be achieved by adding the importclause 'importscala.language.existentials'
or by setting the compiler option -language:existentials.
See the Scala docs for value scala.language.existentials for a discussion
why the feature should be explicitly enabled.
caseclassA(c: Class[_])
^
defined classA
scala>objectB { defx:Option[Class[_]] =null }
defined module B
My prime guess would be that the synthesized unapply method lacks a proper type ascription.
The text was updated successfully, but these errors were encountered:
My prime guess would be that the synthesized unapply method lacks a proper type ascription.
The text was updated successfully, but these errors were encountered: