Skip to content

Commit

Permalink
- fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAlexD committed Oct 5, 2023
1 parent 73ca27e commit 563474f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
23 changes: 11 additions & 12 deletions examples/gradle-kotlin-dsl/src/main/kotlin/AnotherTest.kt
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package whate.ver

fun String.createPluginConfig() {
val pluginConfig = TomlDecoder.decode<T>(
serializer(),
fakeFileNode,
DecoderConf()
)
pluginConfig.configLocation = this.toPath()
pluginConfig.prop1 = property1
// comment1
pluginConfig.configLocation2 = this.toPath()
// comment2
pluginConfig.prop2 = property2
val pluginConfig = TomlDecoder.decode<T>(
serializer(),
fakeFileNode,
DecoderConf()
)
pluginConfig.configLocation = this.toPath()
pluginConfig.prop1 = property1
// comment1
pluginConfig.configLocation2 = this.toPath()
// comment2
pluginConfig.prop2 = property2
}

12 changes: 6 additions & 6 deletions examples/gradle-kotlin-dsl/src/main/kotlin/Test.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package incorrect

class incorrectname: Exception() {
fun INCORRECT_FUNCTION() {
throw Exception()
}
fun INCORRECT_FUNCTION() {
throw Exception()
}

// fun myCommentedFunction() {
// }
// fun myCommentedFunction() {
// }

val Incorrect_Val = 5
val Incorrect_Val = 5

}

0 comments on commit 563474f

Please sign in to comment.