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+
62def 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
33 | ^^^^
44 | Found: ("无穷" : String)
55 | 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
61
72def 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 --------------------------------------
223 |def x: Int = true // error
33 | ^^^^
44 | Found: (true : Boolean)
55 | Required: Int
66 |
77 | 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 ----------------------------------------------
992 |def y: Int = false // error
1010 | ^^^^^
1111 | 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
61
72def userCode =
83 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