Changeset 2287
- Timestamp:
- 02/14/10 07:21:12 (2 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Expr.cobra (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r2284 r2287 566 566 return 567 567 568 _bindImpArgs568 hasErrors = _bindImpArgs 569 569 definition as IMember? 570 570 type as IType? … … 588 588 # there is a FallThroughException down below that would report this if it happened 589 589 if definition inherits BoxMember 590 if not .hasError 590 if not .hasError and not hasErrors 591 591 args = _args 592 592 if definition inherits MemberOverload … … 595 595 # http://www.google.com/search?hl=en&q=C%23+overloaded+method+resolution 596 596 # TODO: handle type inference for generic members. See the C# spec for details. 597 598 597 winner = definition.computeBestOverload(.args, .genericArgTypes, true) 599 598 sharp'definition = winner' … … 692 691 transformTarget._transformTo(postCall) 693 692 694 def _bindImpArgs 693 def _bindImpArgs as bool 694 hasErrors = false 695 695 num = 1 696 696 for arg in List<of Expr>(_args) … … 706 706 ne.prefixMessage('For "[_name]" arg [num]: ') 707 707 .compiler.recordError(ne) 708 hasErrors = true 708 709 num += 1 710 return hasErrors 709 711 710 712 def _didVariArgs(definition as BoxMember) as bool



