blob: 9e3f239b362f77346c69b7997a013a6ebdd8064f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
// test polymorphic nullary method calls
class A {
// built-in
synchronized {}
val x: String = "a".asInstanceOf[String]
// user-defined:
def polyNullary[T]: List[T] = Nil
}
|