summaryrefslogtreecommitdiff
path: root/test/files/shl/basic.check
blob: e517b059affafb3eae288aa0132614b35dea492c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
> > > > > > (): scala.Unit(())
> false: scala.Boolean(false)
> 1: scala.Char('1')
> 2: scala.Int(2)
> 3: scala.Long(3)
> 4.0: scala.Float(4.0)
> 5.0: scala.Double(5.0)
> null: scala.AllRef(null)
> hello: java.lang.String("hello")
> List(): scala.Nil
> List(1,2,3): scala.List[scala.Int]
> > Exception in thread "main" java.lang.Error: error
        at $console$15.<init>(<console>:1)
> > | val x: scala.Int(5) = 5
5: scala.Int(5)
> <console>:1: not found: value y
y
^
> > def fact(scala.Int): scala.Int
> <console>:1: not found: value fac
fac(5)
^
> 120: scala.Int
> > | def length[X](scala.Int,scala.List[X]): scala.Int
> <console>:1: wrong number of arguments for method length(scala.Int,scala.List[X])
length(Nil)
      ^
> 0: scala.Int
> 5: scala.Int
> > | | | class Point extends java.lang.Object with scala.ScalaObject {
  def move(scala.Int,scala.Int): $console$25.Point, 
  def toString(): java.lang.String
}
> val p1: $console$25.Point = Point(3,7)
> Point(10,10): $console$25.Point
> > true: scala.Boolean
> false: scala.Boolean
> string: java.lang.String("string")
> Exception in thread "main" java.lang.ClassCastException: class java.lang.String is not an instance of class scala.Int
        at $console$31.<init>(<console>:1)
> > > 
[Leaving scalarun]