git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@10364 5e8d7ff9-d8ef-0310-90f0-a4852d11357a

This commit is contained in:
spoon 2007-03-16 12:05:54 +00:00
parent 31345a3ee7
commit 95f059690b
6 changed files with 36 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
// bug 989
'42'

View File

@ -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

View File

@ -0,0 +1,3 @@
//bug 990
object Test {
`x

View File

@ -0,0 +1 @@
23

View File

@ -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)
}
}