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

Extern const does not work with generics #897

Closed
wants to merge 1 commit into from

Conversation

horasal
Copy link
Contributor

@horasal horasal commented Jul 9, 2015

include ./constnum

SIG1: extern const Int

foo: func<T>(a: T){
    match(a){
        case b: Int => "matched!" 
        case => Exception new("error") throw()
    }
}

main: func{ foo(SIG1) }

constnum is an extern c header file:

#define SIG1 1

Because SIG1 is a const, taking reference of it will cause compiler error.

@fasterthanlime
Copy link
Collaborator

Looks like the travis build is broken, can you take a look?

@fasterthanlime
Copy link
Collaborator

Eh, not sure what was wrong with travis..

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

Successfully merging this pull request may close these issues.

None yet

2 participants