Open auduchinok opened 7 years ago
Related to (but not the same) #3486 and #3487.
I think that indentation is ignored because #
lines are typically a type of compiler directive and as such not part of the indentation rules. My guess is, this is by design.
I think is just a bug:
The compiler is fine with:
module Nested =
// File.Nested.foo
let foo = 123
#if SOMEDIRECTIVE
#endif
// looks like File.Nested.bar, but is actually File.bar
// No indentation warning given and foo is unresolved
let bar = foo
We probably just need to make sure that FSI only directives work correctly here.
@auduchinok, my apologies, I misunderstood, as I focused on the text and title and missed the comments in the code.
Could you perhaps update the original text with a complete repro (this module is currently not nested) and explain the issue in the text to forego such misunderstandings?
@abelbraaksma I've updated the code repro and added more clarification in the comments there.
Consider File.fsx: