Skip to content
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

Check the lazy property declared in the constructor #9

Open
chachako opened this issue Nov 25, 2021 · 0 comments
Open

Check the lazy property declared in the constructor #9

chachako opened this issue Nov 25, 2021 · 0 comments

Comments

@chachako
Copy link
Owner

chachako commented Nov 25, 2021

This is meaningless, because the class will directly initialize the property when calling the constructor:

Meaningless b:

class Foo(a: Boolean, @LazyInit val b: String = "String")

Foo(true) // in bytecode decompilation -> Foo(true, "String")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant