Skip to content

Commit b7022d0

Browse files
Update docs/docs/reference/metaprogramming/inline.md
Co-Authored-By: Nicolas Stucki <[email protected]>
1 parent 8f6c2bf commit b7022d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ inline def toIntT[N <: Nat] <: Int = inline scala.compiletime.erasedValue[N] mat
374374
case _: Succ[n] => toIntT[n] + 1
375375
}
376376

377-
val two = toIntT[Succ[Succ[Zero.type]]]
377+
final val two = toIntT[Succ[Succ[Zero.type]]]
378378
```
379379

380380
`erasedValue` is an `erased` method so it cannot be used and has no runtime

0 commit comments

Comments
 (0)