Wiki

Ticket #352 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

`in` does not work with a string lits in a dynamic var pointing to a string

Reported by: Charles Owned by:
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.9.6
Keywords: Cc:

Description

The last test fails:

class X

    def main
        assert 'ao' in 'aoeu'
        s = 'aoeu'
        assert 'ao' in s
        t = 'aoeu' to dynamic
        assert 'ao' in t

The generated code calls:

CobraCoreInternal.CobraImp.In("ao",t)/* G *//* E */

...which looks fine, so probably just the native function needs to be fixed.

Change History

Changed 4 years ago by Charles

  • status changed from new to closed
  • resolution set to fixed

Fixed in changeset:3097

Note: See TracTickets for help on using tickets.