'Methods with annotations should compile fine (issue #1911).'

@unittest.skipIf((sys.version_info < (3,)), 'Python    3-specific    test')
def test_annotations(self):

    from .annotation_usecases import AnnotatedClass
    spec = {'x': int32}
    cls = jitclass(spec)(AnnotatedClass)
    obj = cls(5)
    self.assertEqual(obj.x, 5)
    self.assertEqual(obj.add(2), 7)
