You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inline methods can override other methods and can themselves be overridden by other inline methods. The rules are as follows:
147
+
Inline methods can override other non-inline methods. The rules are as follows:
148
148
149
149
1. If an inline method `f` implements or overrides another, non-inline method, the inline method can also be invoked at runtime. For instance, consider the scenario:
150
150
```scala
@@ -167,7 +167,7 @@ assert(a.g() == 33)
167
167
```
168
168
The inlined invocations and the dynamically dispatched invocations give the same results.
169
169
170
-
2. Inline methods can override or implement normal methods, as the previous example shows. Inline methods can be overridden only by other inline methods.
170
+
2. Inline methods are effectively final.
171
171
172
172
3. Inline methods can also be abstract. An abstract inline method can be implemented only by other inline methods. It cannot be invoked directly:
0 commit comments