I have two classes, Foo and Bar, two distinct files, foo.fs and bar.fs
namespace Ganymede.Versioning
type foo = class
val Bar : bar
new(input) = { Bar = input }
end
namespace Ganymede.Versioning
type bar = class
val Test : string
new (input) = { Test = input; }
end
I get a "The type 'bar' is not defined." error inside class foo, for val Bar : bar
Why is that?
Files in a project must be ordered by dependency, so you need to put bar.fs above foo.fs in the project so that foo can see bar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With