Skip to content

Commit 7de783c

Browse files
committed
Tweak: Avoid type ascription in uncheckedNN
1 parent 12b7379 commit 7de783c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package object tools {
1818
* Flow-typing under explicit nulls will automatically insert many necessary
1919
* occurrences of uncheckedNN.
2020
*/
21-
inline def uncheckedNN: T = x.asInstanceOf[T]
21+
transparent inline def uncheckedNN: T = x.asInstanceOf[T]
2222

2323
inline def toOption: Option[T] =
2424
if x == null then None else Some(x.asInstanceOf[T])

0 commit comments

Comments
 (0)