File tree Expand file tree Collapse file tree 10 files changed +35
-26
lines changed Expand file tree Collapse file tree 10 files changed +35
-26
lines changed Original file line number Diff line number Diff line change 1
- //> using options -Xmagic-offset-header:///TEST_MARKER
2
- val t1 = 1
3
- val t2 = 2
4
- val t3 = 3
5
- // /TEST_MARKER
1
+
6
2
def test1 (): Int = " 无穷" // error
Original file line number Diff line number Diff line change 1
- -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-a.scala:6 :19 ----------------------------------------------
2
- 1 |def test1(): Int = "无穷" // error
1
+ -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-a.scala:2 :19 ----------------------------------------------
2
+ 2 |def test1(): Int = "无穷" // error
3
3
| ^^^^
4
4
| Found: ("无穷" : String)
5
5
| Required: Int
Original file line number Diff line number Diff line change
1
+ //> using options -Ymagic-offset-header:TEST_MARKER
2
+ val t1 = 1
3
+ val t2 = 2
4
+ val t3 = 3
5
+ // /TEST_MARKER:tests/neg/magic-offset-header-a.scala
6
+
7
+ def test1 (): Int = " 无穷" // anypos-error
Original file line number Diff line number Diff line change 1
- //> using options -Xmagic-offset-header:///TEST_MARKER
2
-
3
- def x : Int = true // error
4
-
5
- // /TEST_MARKER
6
1
7
2
def y : Int = false // error
Original file line number Diff line number Diff line change 1
- -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-b .scala:3:13 -------- --------------------------------------
1
+ -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-b_wrapper .scala:3:13 --------------------------------------
2
2
3 |def x: Int = true // error
3
3
| ^^^^
4
4
| Found: (true : Boolean)
5
5
| Required: Int
6
6
|
7
7
| longer explanation available when compiling with `-explain`
8
- -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-b.scala:7 :13 ----------------------------------------------
8
+ -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-b.scala:2 :13 ----------------------------------------------
9
9
2 |def y: Int = false // error
10
10
| ^^^^^
11
11
| Found: (false : Boolean)
Original file line number Diff line number Diff line change
1
+ //> using options -Ymagic-offset-header:TEST_MARKER
2
+
3
+ def x : Int = true // error
4
+
5
+ // /TEST_MARKER:tests/neg/magic-offset-header-b.scala
6
+
7
+ def y : Int = false // anypos-error
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- //> using options -Xmagic-offset-header:///SOURCE_CODE_START_MARKER
2
-
3
- val generatedCode = 123
4
-
5
- // /SOURCE_CODE_START_MARKER
6
1
7
2
def userCode =
8
3
val x : String = 0 // error
Original file line number Diff line number Diff line change
1
+ bad option '-Xmagic-offset-header:SOURCE_CODE_START_MARKER' was ignored
2
+ -- [E007] Type Mismatch Error: tests/neg/magic-offset-header-c_wrapper.scala:8:18 --------------------------------------
3
+ 8 | val x: String = 0 // anypos-error
4
+ | ^
5
+ | Found: (0 : Int)
6
+ | Required: String
7
+ |
8
+ | longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change
1
+ //> using options -Xmagic-offset-header:SOURCE_CODE_START_MARKER
2
+
3
+ val generatedCode = 123
4
+
5
+ // /SOURCE_CODE_START_MARKER:tests/neg/magic-offset-header-c.scala
6
+
7
+ def userCode =
8
+ val x : String = 0 // anypos-error
You can’t perform that action at this time.
0 commit comments