spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
Apache License 2.0
0 stars 0 forks source link

JS name clash with similar function names #23

Closed toth-istvan-zoltan closed 2 weeks ago

toth-istvan-zoltan commented 2 weeks ago

This setup produces an compiler error because of a class name clash:

File A:

@Adaptive
private fun someFun() {}

File B:

@Adaptive
private fun someFun() {}

File A and B are in the same directory. The generated class name is AdaptiveSomeFun for both functions. The JS backend throws an error in this case.

toth-istvan-zoltan commented 2 weeks ago

This won't clash anymore as the generated classes are local classes inside the functions now. See: