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

Compiler allows invalid uses of byref in interface methods #127

Closed
KevinRansom opened this issue Jan 26, 2015 · 1 comment
Closed

Compiler allows invalid uses of byref in interface methods #127

KevinRansom opened this issue Jan 26, 2015 · 1 comment
Labels

Comments

@KevinRansom
Copy link
Member

Originally opened at CodePlex by kvb

The compiler is way too lax in checking the types of signature elements for byref types. For instance, this compiles, but fails peverify:

type I =
    abstract M : List<byref<'s>> -> unit

type T =
    interface I with
        member this.M(l) = ()
@dsyme
Copy link
Contributor

dsyme commented Jan 8, 2016

Closing in favour of master bug #862

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants