This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/==================================================================================================================\ | |
| pkg/front_end/test/fasta/strong/wildcard_variables/class_type_parameters is new and failed (Fail, expected Pass) | | |
\==================================================================================================================/ | |
library; | |
import self as self; | |
import "dart:core" as core; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building flutter docs into: Directory: '/tmp/flutterRDUIZE' | |
copying /usr/local/google/home/kallentu/.pub-cache to /tmp/pubcacheTTCOEX | |
flutter-clean: % Total % Received % Xferd Average Speed Time Time Time Current | |
flutter-clean: Dload Upload Total Spent Left Speed | |
flutter-clean: | |
flutter-clean: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
flutter-clean: 1 221M 1 4096k 0 0 18.7M 0 0:00:11 --:--:-- 0:00:11 18.6M | |
flutter-clean: 54 221M 54 119M 0 0 104M 0 0:00:02 0:00:01 0:00:01 104M | |
flutter-clean: 100 221M 100 221M 0 0 117M 0 0:00:01 0:00:01 --:--:-- 117M | |
flutter-clean: Resolving dependencies... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Writer<in T> { | |
void write(T value) => print(value); | |
} | |
class Reader<out T> { | |
final T value; | |
Reader(this.value); | |
T read() => value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReaderWriter<inout T> {} | |
class NewReaderWriter<inout T> extends LegacyReader<T> {} // OK | |
class IntegerReaderWriter<inout T> extends Reader<T> {} // OK | |
class StringReaderWriter<inout T> extends Writer<T> {} // OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Writer<in T> {} | |
class StringWriter<in T> extends Writer<T> {} // OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LegacyReader<T> {} | |
class NewReader<out T> extends LegacyReader<T> {} // OK | |
class Reader<out T> {} | |
class IntegerReader<out T> extends Reader<T> {} // OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReaderWriter<inout T> { /* ... */ } | |
main() { | |
ReaderWriter<int> intReader = ReaderWriter<int>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Writer<in T> { /* ... */ } | |
main() { | |
Writer<int> intWriter = Writer<Object>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Reader<out T> { /* ... */ } | |
main() { | |
Reader<Object> objectReader = Reader<int>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Reader<out T> { | |
// Compile-time error: Can't use 'out' type variable 'T' in an 'in' position. | |
T readableWritableValue; | |
// OK | |
final T readableValue; | |
} | |
class Writer<in T> { | |
// Compile-time error: Can't use 'in' type variable 'T' in an 'out' position. |
NewerOlder