-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix name of Ident and Select trees for module class from java
- Loading branch information
1 parent
a4a379f
commit 373e8e9
Showing
4 changed files
with
55 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
package p; | ||
|
||
public class J { | ||
public static J j = new J(); | ||
public static p.J f() { | ||
return p.J.j; | ||
} | ||
public static Module$ module2() { | ||
return p.Module$.MODULE$; | ||
} | ||
public static p.Module$ module() { | ||
return p.Module$.MODULE$; | ||
} | ||
public static J j = new J(); | ||
|
||
public String toString() { return "J"; } | ||
} | ||
public static p.J f() { | ||
return p.J.j; | ||
} | ||
|
||
public static Module$ module2() { | ||
return p.Module$.MODULE$; | ||
} | ||
|
||
public static p.Module$ module() { | ||
return p.Module$.MODULE$; | ||
} | ||
|
||
public static Module.InnerModule$ innermodule2() { | ||
return p.Module.InnerModule$.MODULE$; | ||
} | ||
|
||
public static p.Module.InnerModule$ innermodule() { | ||
return p.Module.InnerModule$.MODULE$; | ||
} | ||
|
||
public String toString() { | ||
return "J"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
// scalajs: --skip | ||
|
||
package p { | ||
object Module { | ||
override def toString = "Module" | ||
|
||
object InnerModule { | ||
override def toString = "InnerModule" | ||
} | ||
} | ||
} | ||
|
||
object Test extends App { | ||
assert(p.J.f().toString == "J") | ||
assert(p.J.module().toString == "Module") | ||
assert(p.J.module2().toString == "Module") | ||
} | ||
assert(p.J.innermodule().toString == "InnerModule") | ||
assert(p.J.innermodule2().toString == "InnerModule") | ||
} |