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

Type inheritance enum compilation issue #623

Open
thareh opened this issue May 30, 2023 · 4 comments
Open

Type inheritance enum compilation issue #623

thareh opened this issue May 30, 2023 · 4 comments

Comments

@thareh
Copy link
Contributor

thareh commented May 30, 2023

Good day,

The following module will not compile:

SuperStrict

Module Test.Test

Framework BRL.Blitz
Import Text.Encoding

Type TFoo
	
	Method New(test:String, e:EStreamEncoding=Null)
	EndMethod
	
EndType

Type TBar Extends TFoo
	
EndType

"Unable to convert from Int to Enum EStreamEncoding."

Thanks!

@woollybah
Copy link
Member

woollybah commented May 30, 2023

It's not a very good error message. It probably wants to be something else, like "Invalid enum value provided"...

@thareh
Copy link
Contributor Author

thareh commented May 30, 2023

So it should not compile?

It seems to work fine when not used within a module.

@GWRon
Copy link
Contributor

GWRon commented May 30, 2023 via email

@thareh
Copy link
Contributor Author

thareh commented Jun 2, 2023

Yes, but it just seems to use the first value in that case. (I thought perhaps it worked like an object and could really be null)

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

3 participants