Skip to content

Commit 01abc11

Browse files
committed
Fix scala#9572: Workaround issue scala#9655
1 parent 539dd06 commit 01abc11

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

library/src/dotty/DottyPredef.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object DottyPredef {
4747
* }}}
4848
* @group utilities
4949
*/
50-
inline def locally[T](inline body: T): T = body
50+
inline def locally[T](/*inline*/ body: T): T = body // FIXME add `inline` param when #9655 is fixed
5151

5252
/**
5353
* Retrieve the single value of a type with a unique inhabitant.

tests/pos/i9572.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
trait JsonSchemas {
2+
locally {
3+
sealed trait Status
4+
case object Active extends Status
5+
}
6+
}

0 commit comments

Comments
 (0)