type alias generation error #88

Closed
alebianco opened this Issue Sep 26, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@alebianco

this simple code

object week2{
  type Foo = Double
  def bar:Foo = 1.0
}

results in eclipse reporting an error:

identifier expected but '.' found

because the worksheet generates the following code

object week2{
  type Foo = Doubleimport scala.runtime.WorksheetSupport._; def main(args: Array[String])=$execute{;$skip(53); 
  def bar:Foo = 1.0;System.out.println("""bar: => week2.Foo""")}
}.

also, I've found that adding some neutral instruction, line println("hello"), at the beginning of the worksheet, is a quick workaround to the problem

@dotta

This comment has been minimized.

Show comment Hide comment
@dotta

dotta Nov 18, 2012

Owner

This appears to be fixed with the latest V0.1.2 release.

Owner

dotta commented Nov 18, 2012

This appears to be fixed with the latest V0.1.2 release.

@dotta dotta closed this Nov 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment