-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expect/actual removing abstract modifier (#1011)
* expect/actual removing abstract modifier ### What's done: * fixed bug in CLASS_SHOULD_NOT_BE_ABSTRACT * now replace abstract modifier on open modifier Closes #1001
- Loading branch information
1 parent
8b4823a
commit da86140
Showing
7 changed files
with
85 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
.../src/test/resources/test/chapter6/abstract_classes/ShouldRemoveAbstractKeywordExpected.kt
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...src/test/resources/test/chapter6/abstract_classes/ShouldReplaceAbstractKeywordExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package test.paragraph6.abstract_classes | ||
|
||
actual open class CoroutineTest actual constructor() { | ||
actual fun <T> runTest(block: suspend CoroutineScope.() -> T) { | ||
runBlocking { | ||
block() | ||
} | ||
} | ||
} | ||
|
||
open class Some() { | ||
fun some(){} | ||
|
||
fun another(){} | ||
|
||
@SomeAnnotation @Another open inner class Any { | ||
fun func(){} | ||
} | ||
|
||
inner open class Second { | ||
fun someFunc(){} | ||
} | ||
} | ||
|
||
abstract class Another { | ||
abstract fun absFunc() | ||
|
||
fun someFunc(){} | ||
} |
8 changes: 8 additions & 0 deletions
8
...lasses/ShouldRemoveAbstractKeywordTest.kt → ...asses/ShouldReplaceAbstractKeywordTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da86140
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 wasn't able to retrieve PDD puzzles from the code base and submit them to GitHub. If you think that it's a bug on our side, please submit it to yegor256/0pdd:
Please, copy and paste this stack trace to GitHub: