ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

TdwsUnit.ImplicitUse does not work with script units #315

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a TdwsUnit. Give it one procedure called Foo().  Set ImplicitUse to 
true.
2. Create a script that calls Foo.  (Works fine.)
3. Create a unit, like so:

unit bar;
interface

procedure baz;

implementation

procedure baz;
begin
  Foo;
end;
end.

4. Add "uses bar;" to the main script and attempt to compile.

Expected: it should work
Observed: The compiler can't find Foo when the used unit references it.

Original issue reported on code.google.com by masonwhe...@gmail.com on 3 Dec 2012 at 3:41