I had pushed a commit where the return type was changed to int in both 
KernelOps.cs and Initializers.Generated.cs. Have you pulled from my fork? Maybe 
you got into a bad state when you later pulled from irmain (which uses int in 
both files) and resolved merge conflicts differently in the two files. Use gitk 
to see if you have 
http://github.com/shri/ironruby/commit/a3da993f39235b9d7f712d8d16d7d8bb3bb62079 
which will let you determine whether you should go with int or double. Or just 
do a clean pull from irmain if you don’t want to worry about it. Jim has pulled 
my changes and will be pushing them to irmain in a day or two anyway…

From: ironruby-core-boun...@rubyforge.org 
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ryan Riley
Sent: Thursday, August 13, 2009 10:33 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] KernelOps.Sleep

I just got the latest from ironruby/ironruby, but I get a build error in 
Initializers.Generated.cs:

"C:\Users\rriley1\dev\ironruby\Merlin\Main\Languages\Ruby\Ruby.sln" (default 
target) (1) ->
"C:\Users\rriley1\dev\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\IronRuby.Libraries.csproj"
 (default
target) (11) ->
(CoreCompile target) ->
  Initializers.Generated.cs(2940,17): error CS0407: 'double 
IronRuby.Builtins.KernelOps.Sleep(object, double)' has the
wrong return type
  Initializers.Generated.cs(3192,17): error CS0407: 'double 
IronRuby.Builtins.KernelOps.Sleep(object, double)' has the
wrong return type

In the Sleep method, the return value is a double; however, Initializers 
expects the method to return an int. Should the return value be cast or 
converted to an int again (that seems to be part of the latest change)?

R^2
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to