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

error FS9001: Unrecognized member of F# record type #1009

Closed
AlexPeret opened this issue Aug 18, 2018 · 1 comment
Closed

error FS9001: Unrecognized member of F# record type #1009

AlexPeret opened this issue Aug 18, 2018 · 1 comment

Comments

@AlexPeret
Copy link

hi!

the snippet below makes the compiler throw this exception, when used in a library project.

Steps to reproduce:

  1. at the library (.NET Framework) project
namespace Library1
...
[<JavaScript>]
module N1 =
  type T1 = {
      F1:string
  }
  with
      static member Create s =
          { F1 = s }
...
  1. reference the library from a WebSharper 4 Client-Server Application and use the type
...
  let Test() =
    let vT1 = T1.Create ""
...

Note: If the type is moved to the web project, the compiler works fine.

It might be similar to this issue ##923

@AlexPeret
Copy link
Author

Solved. It should be a WebSharper 4 Library project and not a regular .NET Framework one.

If possible, it would be great to have a tip on warnings pointing to this requirement.

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