Allow non-path default type parameters

This commit is contained in:
Aleksey Kladov 2019-11-20 11:42:58 +03:00
parent 4340d9b0e4
commit 0e771915fa
6 changed files with 38 additions and 19 deletions

View file

@ -163,9 +163,3 @@ impl Iterator for CommentIter {
self.iter.by_ref().find_map(|el| el.into_token().and_then(ast::Comment::cast))
}
}
pub trait DefaultTypeParamOwner: AstNode {
fn default_type(&self) -> Option<ast::PathType> {
child_opt(self)
}
}