Forráskód Böngészése

Temporary workarounds with func->bool issue.

Mark Sibly 9 éve
szülő
commit
db0cf4df69

+ 2 - 1
modules/std/collections/list.monkey2

@@ -575,7 +575,8 @@ Class List<T> Implements IContainer<T>
 	@param compareFunc Function to be used to compare values when sorting.
 	
 	#end
-	Method Sort( ascending:Bool=True )
+	Method Sort( ascending:Int=True )
+	
 		If ascending
 			Sort( Lambda:Int( x:T,y:T )
 				Return x<=>y

+ 1 - 1
modules/std/collections/stack.monkey2

@@ -699,7 +699,7 @@ Class Stack<T> Implements IContainer<T>
 	@param hi Index of last value to sort.
 
 	#end
-	Method Sort( ascending:Bool=True )
+	Method Sort( ascending:Int=True )
 		If ascending
 			Sort( Lambda:Int( x:T,y:T )
 				Return x<=>y