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
Copy file name to clipboardExpand all lines: content/binary-api.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,19 @@ Related to discussion in [https://github.com/lightbend/mima/discussions/724](htt
48
48
49
49
### No way to inline reference to private constructors
50
50
51
-
It is currently impossible to refer to private constructors in inline methods. If users want to access one of those, they must write an accessor explicitly. This extra indirection is undesirable.
51
+
It is currently impossible to refer to private constructors in inline methods.
52
+
```scala
53
+
classCprivate()
54
+
objectC:
55
+
inlinedefnewC:C=newC() // Implementation restriction: cannot use private constructors in inline methods
56
+
```
57
+
If users want to access one of those, they must write an accessor explicitly. This extra indirection is undesirable.
0 commit comments