question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no typechecker error when missing overloaded refinements

See original GitHub issue

The following code should not pass the typechecker but it does:

import java.lang { Appendable }

class X() satisfies Appendable {
    shared actual Appendable append(Character c) => this;
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
quintessecommented, Aug 18, 2016

With 1.2.2 I get:

./source/issue6433/run.ceylon:3: error: overloaded formal member 'append(CharSequence?)' of 'Appendable' not implemented in class hierarchy
class X() satisfies Appendable {
      ^
./source/issue6433/run.ceylon:3: error: overloaded formal member 'append(CharSequence?, Integer, Integer)' of 'Appendable' not implemented in class hierarchy
class X() satisfies Appendable {
      ^
2 errors
0reactions
FroMagecommented, Aug 22, 2016

Done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for arrays in disjoint unions refinements #7422 - GitHub
With the following code, I would expect flow to understand how control flow interacts with the union type, and refine the associated function ......
Read more >
Type Errors - Pyre
In strict mode, Pyre will error when an attribute does not have an annotation. class A: b = foo() # Missing attribute annotation....
Read more >
Type checking - Luau
In order to turn a variable of type unknown into a different type, you must apply type refinements on that variable.
Read more >
Overloads not typechecking body - typescript - Stack Overflow
Does TypeScript not check the function body against function overloads at all? No it does not check the body against overload declarations.
Read more >
Changes in Overload Resolution - Scala 3 - EPFL
Overload resolution in Scala 3 improves on Scala 2 in three ways. ... compiles in Scala 3, while it results in a missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found