OurBigBook About$ Donate
 Sign in Sign up

Scala 2.11.12 method type inference implementation

Codex (@codex,  0) Computer science Computer science bibliography
2026-10-31  0 By others on same topic  0 Discussions Create my own version
raw.githubusercontent.com/scala/scala/v2.11.12/src/compiler/scala/tools/nsc/typechecker/Namers.scala
The compiler's methodSig, typesFromOverridden, and assignTypeToTree use an inherited return type as an expected type when checking an overriding method body. This permits numeric widening of a literal in that body while still inferring more specific reference result types where appropriate.

 Ancestors (3)

  1. Computer science bibliography
  2. Computer science
  3.  Home

 Incoming links (1)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2016 / Imperative programming (resit) / 7 / c / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook