allow where clause in decl_error (#7324)

This commit is contained in:
Guillaume Thiolliere
2020-10-14 17:39:27 +02:00
committed by GitHub
parent 8503cc0892
commit 1164ced041
2 changed files with 18 additions and 2 deletions
@@ -81,6 +81,13 @@ mod module1 {
}
}
frame_support::decl_error! {
pub enum Error for Module<T: Trait<I>, I: Instance> where T::BlockNumber: From<u32> {
/// Test
Test,
}
}
frame_support::decl_event! {
pub enum Event<T, I> where Phantom = std::marker::PhantomData<T> {
_Phantom(Phantom),