> From: "Ron Pressler" <[email protected]>
> To: "amber-spec-experts" <[email protected]>
> Sent: Wednesday, February 15, 2023 5:14:21 PM
> Subject: JEP draft: Implicit Classes and Enhanced Main Methods (Preview)

> Hi.

> I've published a JEP draft, Implicit Classes and Enhanced Main Methods 
> (Preview)
> ( [ https://openjdk.org/jeps/8302326 | https://openjdk.org/jeps/8302326 ] )
> based on Brian’s article, Paving the On-Ramp ( [
> https://openjdk.org/projects/amber/design-notes/on-ramp |
> https://openjdk.org/projects/amber/design-notes/on-ramp ] ).

> System.out.println and possible improvements to the import experience in 
> general
> will be the subject of a separate JEP.

What is the behaviors of the compiler for 

var hello() { } 
var hello() { return; } 
var hello() { return null; } 
var foo; 
var foo = null; 

record hello() { } 
record hello() { return; } 
record hello() { return null; } 
record foo; 
record foo = null; 

record main() { } 
record main() { return; } 
static record main() { } 
static record main() { return; } 
record main; 
record main = null; 

> Comments are welcome.

> — Ron

Rémi 

Reply via email to