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

Support child class / interface implementations #78

Open
kevinresol opened this issue Oct 25, 2020 · 0 comments
Open

Support child class / interface implementations #78

kevinresol opened this issue Oct 25, 2020 · 0 comments

Comments

@kevinresol
Copy link
Member

I am not very sure if this make sense for tink_json, but it would be quite useful if supported.

interface Base {}

class Foo implements Base {}
class Bar implements Base {}

function main() {
	var base:Base;
	var s = tink.Json.stringify(base); // store the actual runtime class somehow
	base = tink.Json.parse(s); // get back the correct implementation
}
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