blob: 3cdd32b3c02cf9c1d6782d07b3da0390d361e81f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.language.dynamics
class Foo extends scala.Dynamic {
def updateDynamic(name: Int)(value: Int): Unit = ???
}
object DynamicTest {
new Foo().bazUpdate = 42 // error
}
|