git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@10364 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
31345a3ee7
commit
95f059690b
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
// bug 989
|
||||
'42'
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
//bug 990
|
||||
object Test {
|
||||
`x
|
|
@ -0,0 +1 @@
|
|||
23
|
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue