Commit 1b15fa6
committed
Bugfix: Relax experimental inheritance criterion
We previously required that a class inheriting an @experimental class is itself
@experimental. This is too strict. It should be OK to have the inheriting class
be contained in an experimental scope. I.e.
```
@experimental class A
@experimental object o:
class B extends A
```
is now OK.1 parent 18b8ff4 commit 1b15fa6
File tree
2 files changed
+5
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+5
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments