Page 1 of 1

compiler bug with label

PostPosted: Wed Apr 02, 2008 12:38 am
by oravard
Hi,
I think there is a compiler bug. When I use this part of code :

Code: Select all
class SpecialLabel
   inherits Label
   def init
      base.init


There is a compiler error :

error: Cannot locate nested CLR type "System.Windows.Forms.Layout.LayoutUtils+MeasureTextCache" (simple name is "MeasureTextCache").
Compilation failed - 1 error, 0 warnings

Is it wright ?

Re: compiler bug with label

PostPosted: Wed Apr 02, 2008 12:49 am
by Charles
Can you give more information?
-- the command line you're using to compile/run
-- the version of Cobra
-- the platform you're running on

Thanks.

Re: compiler bug with label

PostPosted: Wed Apr 02, 2008 1:11 am
by oravard
- cobra -r:System.Windows.Forms -r:System.Drawing mymodule.cobra
- cobra 0.7.4
- windows Vista, .NET

Re: compiler bug with label

PostPosted: Wed Apr 02, 2008 2:25 am
by Charles
Works for me under the latest source version which has several fixes.

We're overdue for a release. When I finish up the "extend" feature this week, I'll cut a new release. In the mean time, try running out of source. It's pretty easy to build.

Re: compiler bug with label

PostPosted: Wed Apr 02, 2008 2:34 am
by oravard
Ok. Thanks.