History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-1013
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

A stub is always created when a class implements an abstract generic method with at least one generic argument

Created: 15/May/08 05:07 AM   Updated: 16/May/08 07:49 AM
Component/s: None
Affects Version/s: 0.8.1
Fix Version/s: 0.8.2

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
cedric@laptop:~/dev/workspace/boo/boo$ cat tests/testcases/regression/BOO-1013-1.boo
"""
42
foo
"""

abstract class AbstractFoo:
        abstract def Bar[of T](x as T) as T:
                pass

class Foo(AbstractFoo):
        def Bar[of T](x as T) as T:
                print x
                return x

foo = Foo()
assert 42 == foo.Bar[of int](42)
assert "foo" == foo.Bar[of string]("foo")

cedric@laptop:~/dev/workspace/boo/boo$ booc tests/testcases/regression/BOO-1013-1.boo
Boo Compiler version 0.8.1.2932 (CLR v2.0.50727.42)
tests/testcases/regression/BOO-1013-1.boo(10,11): BCW0011: WARNING: Type 'Foo' does not provide an implementation for 'AbstractFoo.Bar`1(AbstractFoo.Bar`1.T)', a stub has been created.
1 warning(s).


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Cedric Vivier - 16/May/08 07:49 AM
fixed in rev. 2946