Skip to content

Commit acc16ca

Browse files
committed
Add test for renaming in hasImport
1 parent 895a47c commit acc16ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/neg/dynamicNoImport.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ package A {
99
class Foo extends scala.Dynamic // error
1010
trait Bar extends scala.Dynamic // error
1111
object Baz extends scala.Dynamic // error
12+
13+
package C {
14+
import scala.language.{ dynamics => d }
15+
class Foo extends scala.Dynamic // OK
16+
}
1217
}
1318
}

0 commit comments

Comments
 (0)