Skip to content

Commit f017628

Browse files
committed
doc(inline): fix for transparent
1 parent bd50c7b commit f017628

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ Inline methods can override other non-inline methods. The rules are as follows:
170170
2. Inline methods are effectively final.
171171

172172
3. Inline methods can also be abstract. An abstract inline method can be implemented only by other inline methods. It cannot be invoked directly:
173-
```scala
174-
abstract class A {
175-
inline def f(): Int
176-
}
177-
object B extends A {
178-
inline def f(): Int = 22
179-
}
180-
B.f() // OK
181-
val a: A = B
182-
a.f() // error: cannot inline f() in A.
183-
```
173+
```scala
174+
abstract class A {
175+
inline def f(): Int
176+
}
177+
object B extends A {
178+
inline def f(): Int = 22
179+
}
180+
B.f() // OK
181+
val a: A = B
182+
a.f() // error: cannot inline f() in A.
183+
```
184184

185185
### Relationship to @inline
186186

0 commit comments

Comments
 (0)