Skip to content

Missing type apply for scala.Dynamic #1468

Closed
@nicolasstucki

Description

@nicolasstucki
class Foo extends Dynamic {
  def applyDynamic[T](n: String)(): T = ???
}

new Foo().foo[Int]()
// should become
new Foo().applyDynamic[Int]("foo")()

The current behaviour is to convert the call to applyDynamic("foo")[Int]() which then fails type checking with an error message that is not useful.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions