-
Notifications
You must be signed in to change notification settings - Fork 59
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
[direct] improve error messages + test coverage #985
Conversation
@@ -47,97 +82,52 @@ private[kyo] object Validate: | |||
|""".stripMargin | |||
) | |||
|
|||
case tree @ Apply(TypeApply(Ident("defer"), _), _) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case was unnecessary. The error message for a missing now
triggers first
|• TRef and derivatives (kyo-stm)""".stripMargin | ||
) | ||
|
||
case Return(_, _) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also unnecessary, it's not possible to have a return
outside of def
|}""".stripMargin)}""".stripMargin | ||
) | ||
|
||
case Lambda(_, body) if !pure(body) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern match is wrong and I couldn't make it work. I've decided to remove because dotty-cps-async
already produces an error message for this.
@@ -0,0 +1,195 @@ | |||
package kyo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed DirectTest
and replaced it with more complete PreludeTest
and CoreTest
suites
} | ||
} | ||
|
||
// TODO Compiler crash because `Queue` is an opaque type without a type bound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't use pendingUntilFixed
because the compiler crashes. I'll create an issue for this
} | ||
} | ||
|
||
// TODO Compiler crash because `Queue` is an opaque type without a type bound |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same issue
No description provided.