Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worksheet fails silently when a method is overloaded #211

Open
matthewfarwell opened this issue Jan 13, 2015 · 0 comments
Open

Worksheet fails silently when a method is overloaded #211

matthewfarwell opened this issue Jan 13, 2015 · 0 comments

Comments

@matthewfarwell
Copy link

If I create a worksheet with the following contents, the worksheet fails silently, no warnings, no errors :

object worksheet {
  def bar(a: Int) = 77

  def bar(b: String): Int = 66

  bar(66)
  bar("String")
}

However, if I rename one of the methods (to bar2), it works:

object worksheet {
  def bar(a: Int) = 77                            //> bar: (a: Int)Int

  def bar2(b: String): Int = 66                   //> bar2: (b: String)Int

  bar(66)                                         //> res0: Int = 77
  bar2("String")                                  //> res1: Int = 66
}

This is using

org.scala-ide.sbt.feature (4.0.0.201412161056) "Sbt Library for Eclipse"
org.scala-ide.scala211.feature (4.0.0.201412161056) "Scala Standard Library"
org.scala-ide.sdt.feature (4.0.0.v-2_11-201412161058-027320c) "Scala Plugin"
org.scala-ide.sdt.scalatest.feature (2.9.3.v-4-2_11-201411200954-82f5fff) "ScalaTest Plugin"
org.scalaide.worksheet.feature (0.2.6.v-2_11-201412171534-8101792) "Scala Worksheet plugin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant