We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e13bf16 commit d55f4b3Copy full SHA for d55f4b3
accepted/future-releases/inline-classes/feature-specification.md
@@ -606,6 +606,13 @@ _is the inline type_
606
<code>V<T<sub>1</sub>, .. T<sub>s</sub>></code>,
607
and that its static type _is an inline type_.
608
609
+It is a compile-time error if `await e` occurs, and the static type of
610
+`e` is an inline type.
611
+
612
+*We may loosen this restriction in the future, especially if we
613
+introduce a way for an inline type to be a subtype of a type of the
614
+form `Future<T>` or `FutureOr<T>`.*
615
616
A compile-time error occurs if an inline type declares a member whose
617
name is declared by `Object` as well.
618
0 commit comments