blob: 4de7235a1cde420d2e0fcae3f8a1557df9167f67 (
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
}
|