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
Dotty compiler version 0.5.0-RC1 -- Copyright 2002-2017, LAMP/EPFL
Compiler output:
-- Error: test.scala:3:6 -------------------------------------------------------
3 |class Foo() extends Dynamic
|^^^^^^^^^^^^^^^^^^^^^^^^^^^
|extension of type scala.Dynamic needs to be enabled
|by making the implicit value scala.language.dynamics visible.
|This can be achieved by adding the import clause 'import scala.language.dynamics'
|or by setting the compiler option -language:dynamics.
|See the Scala docs for value scala.language.dynamics for a discussion
|why the feature needs to be explicitly enabled.
one error found
The text was updated successfully, but these errors were encountered:
The
scala.language.dynamics
implicit for enabling use of theDynamic
trait appears to be strangely "shadowed" by any subsequent import.This does not compile,
with
whereas omitting
will allow it to compile, as will reordering the imports like so,
Compiler version:
Compiler output:
The text was updated successfully, but these errors were encountered: