Description
Opened by corado at codeplex
Given a generative type provider. Take the example from the sample pack: GeneratedTypeProvider
And the following usage of it:
module FSharpLib
type Test = Samples.ShareInfo.TPTest.TPTestType
type Test with
member x.Extension = 42
let t = Test()
printfn "%i" (t.F1(1))
The type Test should be Intrinsically extended with the Extension property as the type is defined in the same file but this will fail to build with the error:
/SampleProviders/GeneratedTypeProvider/ConsoleApplication2: Error FS0192: internal error: FindTypeDefBuilder: Test not found (FS0192) (ConsoleApplication2)
comments
ReedCopsey wrote Apr 25, 2014 at 12:03 PM [x]
Using VS 2013, I get the same issue with my XAML Type provider. However, the error message is slightly different. Given:
type App = XAML<"App.xaml">
type App with
member self.Foo = 42
[<STAThread>]
[<EntryPoint>]
let main argv =
let app = App()
printfn "%d" app.Foo
app.CreateRoot().Run()
I get:
Error 3 The field, constructor or member 'Foo' is not defined
7sharp9 wrote Apr 25, 2014 at 1:12 PM [x]
Is that error given on build?ReedCopsey wrote Apr 25, 2014 at 1:50 PM [x]
Yes. I get that at compile time.
Metadata
Metadata
Assignees
Type
Projects
Status