Commit 03b06cd
committed
The time travel in `isJSType` was causing an issue when used from
`ExplicitJSClasses`. It would somehow interfere with
`ExplicitOuter`, which would then generate an outer pointer twice.
We now test the presence of the `@JSType` annotation, which is also
what Scala 2 does. Historically we used the time travel because we
had not implemented `PrepJSInterop`, which is responsible for
adding the `@JSType` annotations in the first place.
1 parent 70bcb28 commit 03b06cd
File tree
2 files changed
+26
-5
lines changed- compiler/src/dotty/tools/dotc/transform/sjs
- tests/sjs-junit/test/org/scalajs/testsuite/compiler
2 files changed
+26
-5
lines changedLines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 46 | + | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments