File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 8
8
| method g in object Test must be called with () argument
9
9
|
10
10
| longer explanation available when compiling with `-explain`
11
- -- Error: tests/neg/i16820.scala:8:14 ----------------------------------------------------------------------------------
12
- 8 | val x3 = "".formatted // error
13
- | ^^^^^^^^^^^^
14
- | missing arguments for method formatted in class String
15
- -- Error: tests/neg/i16820.scala:9:40 ----------------------------------------------------------------------------------
16
- 9 | val x4 = java.nio.file.Paths.get(".").toRealPath // error
11
+ -- Error: tests/neg/i16820.scala:7:40 ----------------------------------------------------------------------------------
12
+ 7 | val x3 = java.nio.file.Paths.get(".").toRealPath // error
17
13
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
14
| missing arguments for method toRealPath in trait Path
19
- -- Error: tests/neg/i16820.scala:13 :14 ---------------------------------------------------------------------------------
20
- 13 |def test = Foo(3) // error
15
+ -- Error: tests/neg/i16820.scala:11 :14 ---------------------------------------------------------------------------------
16
+ 11 |def test = Foo(3) // error
21
17
| ^^^^^^
22
18
| missing arguments for method apply in object Foo
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ object Test:
4
4
5
5
val x1 = f // error
6
6
val x2 = g // error
7
-
8
- val x3 = " " .formatted // error
9
- val x4 = java.nio.file.Paths .get(" ." ).toRealPath // error
7
+ val x3 = java.nio.file.Paths .get(" ." ).toRealPath // error
10
8
11
9
// #14567
12
10
case class Foo (x : Int )(xs : String * )
You can’t perform that action at this time.
0 commit comments