Implement enum abstract + fully qualified path functionality.#15
Implement enum abstract + fully qualified path functionality.#15Jamextreme140 merged 3 commits intoCodenameCrew:codename-devfrom
Conversation
|
path functionality? |
I'm still testing this and it's not ready to add yet. I should convert it to a draft for now. |
|
oh ok |
|
Extended functionality implemented. Newly added: enum abstract Color(Int) {
Red = 1;
Green = 2;
}
trace(Color.Red); // 1The Added
import path.class;
class.function(); |
|
Alright. Thanks for bringing the :3 |
|
Just fixed a small typo in the implementation. enum abstract fields should be declared with enum abstract Color(Int) {
var Red = 1;
var Green = 2;
}
trace(Color.Red); // 1also, I did the implicit value for String. |
Thank you for helping me fix it. |
No description provided.