summaryrefslogtreecommitdiff
path: root/test/files/t8449/Test.java
blob: ecb1711b24b4f6b18cddc8e332a3ff437d042b9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
public class Test {
	// Raw type over a Scala type constructor
	public scala.Function1 foo() { return null; }
	// scalac reported:
	// % scalac-hash v2.11.2 -d /tmp sandbox/{Test.java,Client.scala}
	// sandbox/Test.java:2: error: trait Function1 takes type parameters
	// 	public scala.Function1 foo() { return null; }
	//                      ^
	// one error found
}