We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2437276 commit 6643de1Copy full SHA for 6643de1
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -1359,7 +1359,8 @@ object Scanners {
1359
1360
case class InBraces(var width: IndentWidth | Null, outer: Region)
1361
extends IndentSignificantRegion {
1362
- override def indentWidth = width
+ override def indentWidth =
1363
+ if width == null then IndentWidth.Zero else width
1364
}
1365
1366
/** A class describing an indentation region.
tests/neg/i7742.scala
@@ -0,0 +1,3 @@
1
+object A {
2
+ for // error // error
3
+}
tests/pos/i7741.scala
@@ -0,0 +1,9 @@
+class A1 {
+ @native private def a: Unit
4
+trait A2 {
5
+ erased def i(a: Int): Int
6
7
+trait A3 {
8
+ erased val a: Int
9
0 commit comments