https://github.com/staktrace/20220720-kotlin-compiler-regression
Minimal reproducer case for a kotlin compiler regression in 1.7.0
https://github.com/staktrace/20220720-kotlin-compiler-regression
Last synced: about 1 month ago
JSON representation
Minimal reproducer case for a kotlin compiler regression in 1.7.0
- Host: GitHub
- URL: https://github.com/staktrace/20220720-kotlin-compiler-regression
- Owner: staktrace
- Created: 2022-07-20T16:41:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-20T16:42:20.000Z (almost 4 years ago)
- Last Synced: 2025-08-01T19:58:23.044Z (11 months ago)
- Language: Kotlin
- Size: 245 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository reproduces what appears to be a regression in the kotlin toolchain in version 1.7.0.
At least, it appears to me to be a regression; it may be an intentional change.
If it is an intentional change, it is not at all clear what the intended code change is meant to be to resolve the compilation error.
## Steps to reproduce
1. Check out this repo
2. Run `./gradlew compileKotlin`
3. Observe failure that starts out like this:
```
> Task :compileKotlin FAILED
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, unresolved supertypes: DescriptorProtoOrBuilder
[.. much output trimmed ..]
```
## Compare behaviour against kotlin 1.6.21
1. Modify the build.gradle.kts file to use the Kotlin 1.6.21 compiler (comment out the 1.7.0 plugin and uncomment the 1.6.21 line)
2. Run `./gradlew compileKotlin`
3. Observe the build succeeds.