diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-23 16:22:00 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:06 +0100 |
commit | bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8 (patch) | |
tree | f60eb742dfe8bb67e8e353a5f0470679abb6bd8b /tests/repl | |
parent | 6351c6cc8c3014fd1fbb8244e872c9e28773dad0 (diff) | |
download | dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.gz dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.bz2 dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.zip |
Add dotty-library to classpath in dottydoc tests
Diffstat (limited to 'tests/repl')
-rw-r--r-- | tests/repl/errmsgs.check | 48 | ||||
-rw-r--r-- | tests/repl/imports.check | 2 |
2 files changed, 25 insertions, 25 deletions
diff --git a/tests/repl/errmsgs.check b/tests/repl/errmsgs.check index 2bcb40eb0..f0ccdf53f 100644 --- a/tests/repl/errmsgs.check +++ b/tests/repl/errmsgs.check @@ -1,42 +1,42 @@ scala> class Inv[T](x: T) defined class Inv scala> val x: List[String] = List(1) --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 4 |val x: List[String] = List(1) | ^ | found: Int(1) | required: String | scala> val y: List[List[String]] = List(List(1)) --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 4 |val y: List[List[String]] = List(List(1)) | ^ | found: Int(1) | required: String | scala> val z: (List[String], List[Int]) = (List(1), List("a")) --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 4 |val z: (List[String], List[Int]) = (List(1), List("a")) | ^ | found: Int(1) | required: String | --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 4 |val z: (List[String], List[Int]) = (List(1), List("a")) | ^^^ | found: String("a") | required: Int | scala> val a: Inv[String] = new Inv(new Inv(1)) --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 5 |val a: Inv[String] = new Inv(new Inv(1)) | ^^^^^ - | found: Inv[T] - | required: String - | - | where: T is a type variable with constraint >: Int(1) + | found: Inv[T] + | required: String + | + | where: T is a type variable with constraint >: Int(1) scala> val b: Inv[String] = new Inv(1) --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 5 |val b: Inv[String] = new Inv(1) | ^ | found: Int(1) @@ -57,25 +57,25 @@ scala> abstract class C { } } } --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 9 | var y: T = x | ^ - | found: C.this.T(C.this.x) - | required: T' - | - | where: T is a type in class C - | T' is a type in the initalizer of value s which is an alias of String --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- + |found: C.this.T(C.this.x) + |required: T' + | + |where: T is a type in class C + | T' is a type in the initalizer of value s which is an alias of String +-- [E007] Type Mismatch Error: <console> --------------------------------------- 13 | val z: T = y | ^ - | found: T(y) - | required: T' - | - | where: T is a type in the initalizer of value s which is an alias of String - | T' is a type in method f which is an alias of Int + |found: T(y) + |required: T' + | + |where: T is a type in the initalizer of value s which is an alias of String + | T' is a type in method f which is an alias of Int scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr --- [E008] Member Not Found Error: <console> ---------------------------------------------------------------------------- +-- [E008] Member Not Found Error: <console> ------------------------------------ 4 |class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr | ^^^^^^^^ - | value `barr` is not a member of Foo(foo) - did you mean `foo.bar`? + | value `barr` is not a member of Foo(foo) - did you mean `foo.bar`? scala> :quit diff --git a/tests/repl/imports.check b/tests/repl/imports.check index b6d9ae8a7..4ca59e4ee 100644 --- a/tests/repl/imports.check +++ b/tests/repl/imports.check @@ -7,7 +7,7 @@ defined module o scala> import o._ import o._ scala> buf += xs --- [E007] Type Mismatch Error: <console> ------------------------------------------------------------------------------- +-- [E007] Type Mismatch Error: <console> --------------------------------------- 11 |buf += xs | ^^ | found: scala.collection.immutable.List[Int](o.xs) |