diff --git a/test/files/neg/badtok-1.check b/test/files/neg/badtok-1.check new file mode 100644 index 000000000..6523358c7 --- /dev/null +++ b/test/files/neg/badtok-1.check @@ -0,0 +1,7 @@ +badtok-1.scala:2: error: expected class or object definition +'42' +^ +badtok-1.scala:2: error: unclosed character literal +'42' + ^ +two errors found diff --git a/test/files/neg/badtok-1.scala b/test/files/neg/badtok-1.scala new file mode 100644 index 000000000..739ea2073 --- /dev/null +++ b/test/files/neg/badtok-1.scala @@ -0,0 +1,2 @@ +// bug 989 +'42' \ No newline at end of file diff --git a/test/files/neg/badtok-2.check b/test/files/neg/badtok-2.check new file mode 100644 index 000000000..4b142c37a --- /dev/null +++ b/test/files/neg/badtok-2.check @@ -0,0 +1,10 @@ +badtok-2.scala:3: error: unclosed quoted identifier +`x + ^ +badtok-2.scala:3: error: illegal start of definition +`x +^ +badtok-2.scala:3: error: '}' expected but eof found. +`x + ^ +three errors found diff --git a/test/files/neg/badtok-2.scala b/test/files/neg/badtok-2.scala new file mode 100644 index 000000000..2074abe06 --- /dev/null +++ b/test/files/neg/badtok-2.scala @@ -0,0 +1,3 @@ +//bug 990 +object Test { +`x \ No newline at end of file diff --git a/test/pending/run/bug1006.check b/test/pending/run/bug1006.check new file mode 100644 index 000000000..409940768 --- /dev/null +++ b/test/pending/run/bug1006.check @@ -0,0 +1 @@ +23 diff --git a/test/pending/run/bug1006.scala b/test/pending/run/bug1006.scala new file mode 100644 index 000000000..0a82373fb --- /dev/null +++ b/test/pending/run/bug1006.scala @@ -0,0 +1,13 @@ +object foo { + def main(args: Array[String]) { + abstract class A[T] { + def myVal: T + } + + class B[T](value: T) extends A[T] { + def myVal = value + } + + Console.println(new B[int](23).myVal) + } +}