redstone-dart / redstone

A metadata driven microframework for Dart.
http://redstone-dart.github.io/redstone
MIT License
342 stars 42 forks source link

Exporting classes with @Group annotations don't work unless imported #186

Closed mnordine closed 8 years ago

mnordine commented 8 years ago

See https://gitlab.com/mark-nordine/redstone-bug/commit/1f90a0c3c81df9d48f8e6e93258da4070ea52ac1

my_lib.dart:

library my_lib;

export 'user_service.dart';

user_service.dart:

import 'package:redstone/redstone.dart';

 @Group('/user')
 class UserService
 {
   @Route('/login')
   String sayHi() => 'hi';
 }

The Group's routes don't get registered unless you add import 'user_service.dart';

mnordine commented 8 years ago

Duplicate #184