2008-11-02 8 views

cevap

5

Bu gerçekten ayrıştırıcı bir hatadır.

$ ./scala 
Welcome to Scala version 2.7.2.RC6 (Java HotSpot(TM) Client VM, Java 1.5.0_16). 
Type in expressions to have them evaluated. 
Type :help for more information. 
scala> def y = "foo" 
y: java.lang.String 

scala> y "bar" 
<console>:1: error: ';' expected but string literal found. 
     y "bar" 
     ^

scala> val x = "foo" 
x: java.lang.String = foo 

scala> x "foo" 
<console>:1: error: ';' expected but string literal found. 
     x "foo" 
     ^

scala> "foo" "bar" 
<console>:1: error: ';' expected but string literal found. 
     "foo" "bar" 
      ^
(şu anda RC6 olan) skala 2.7.2 giderilmiştir