-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Can't call "fail" in Kotlin without specifying generic type explicitly #1209
Comments
JLLeitschuh
added a commit
to JLLeitschuh/junit5
that referenced
this issue
Dec 20, 2017
7 tasks
sormuras
pushed a commit
that referenced
this issue
Jan 20, 2018
sormuras
pushed a commit
that referenced
this issue
Jan 20, 2018
sormuras
pushed a commit
that referenced
this issue
Jan 20, 2018
sormuras
pushed a commit
that referenced
this issue
Jan 20, 2018
sormuras
pushed a commit
that referenced
this issue
Jan 20, 2018
Andrei94
pushed a commit
to Andrei94/junit5
that referenced
this issue
Jun 23, 2018
Add Kotlin "fail" methods to org.junit.jupiter.api Closes junit-team#1209
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
In java you can call
fail
like this:Because of how the Kotlin compiler works, the same call in kotlin becomes:
Trying to just have:
Causes the compiler to spit out the following error:
Proposed Solution
Add to the existing
Assertions.kt
file something like the following:Similar overloads will have to be provided for the other various
fail
overloads.Deliverables
fail
api to theAssertions.kt
file.The text was updated successfully, but these errors were encountered: