Last active
August 29, 2015 13:57
-
-
Save lucaswerkmeister/9879274 to your computer and use it in GitHub Desktop.
Generated code for ceylon/ceylon-compiler#1579
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
@noanno void do() { | |
@noanno {String+} following = {"a"}.following("a"); | |
} |
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
/* | |
* broken.java with fixed fully qualified names | |
* (removed the leading .) | |
*/ | |
package tmp; | |
final class do_ { | |
private do_() { | |
} | |
static void $do() { | |
final ceylon.language.Iterable<? extends ceylon.language.String, ? extends java.lang.Object> following = (ceylon.language.Iterable<? extends ceylon.language.String, ? extends java.lang.Object>)(ceylon.language.Iterable)ceylon.language.ArraySequence.<ceylon.language.String>instance(ceylon.language.String.$TypeDescriptor$, new java.lang.Object[]{ceylon.language.String.instance("a")}).<ceylon.language.String>following(ceylon.language.String.$TypeDescriptor$, ceylon.language.String.instance("a")); | |
} | |
public static void main(java.lang.String[] args) { | |
ceylon.language.process_.get_().setupArguments(args); | |
tmp.do_.$do(); | |
} | |
} |
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
package tmp; | |
final class do_ { | |
private do_() { | |
} | |
static void $do() { | |
final .ceylon.language.Iterable<? extends .ceylon.language.String, ? extends .java.lang.Object> following = (.ceylon.language.Iterable<? extends .ceylon.language.String, ? extends .java.lang.Object>)(.ceylon.language.Iterable).ceylon.language.ArraySequence.<.ceylon.language.String>instance(.ceylon.language.String.$TypeDescriptor$, new .java.lang.Object[]{.ceylon.language.String.instance("a")}).<.ceylon.language.String>following(.ceylon.language.String.$TypeDescriptor$, .ceylon.language.String.instance("a")); | |
} | |
public static void main(.java.lang.String[] args) { | |
.ceylon.language.process_.get_().setupArguments(args); | |
.tmp.do_.$do(); | |
} | |
} |
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
@noanno {String+} following = {"a"}.following("a"); |
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
package tmp; | |
final class following_ { | |
private following_() { | |
} | |
private static final .ceylon.language.Iterable<? extends .ceylon.language.String, ? extends .java.lang.Object>[] value; | |
static { | |
value = new .ceylon.language.Iterable[]{(.ceylon.language.Iterable<? extends .ceylon.language.String, ? extends .java.lang.Object>)(.ceylon.language.Iterable).ceylon.language.ArraySequence.<.ceylon.language.String>instance(.ceylon.language.String.$TypeDescriptor$, new .java.lang.Object[]{.ceylon.language.String.instance("a")}).<.ceylon.language.String>following(.ceylon.language.String.$TypeDescriptor$, .ceylon.language.String.instance("a"))}; | |
} | |
public static .ceylon.language.Iterable<? extends .ceylon.language.String, ? extends .java.lang.Object> get_() { | |
try { | |
return value[0]; | |
} catch (.java.lang.NullPointerException ex) { | |
throw new .ceylon.language.InitializationError("Cyclic initialization"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment