Skip to content

Commit 90a2a3c

Browse files
authored
[std] Make haxe.io.Input and haxe.io.Output abstract classes (#12346)
Methods `readByte():Int` and `writeByte(Int):Void` are left as-is, because marking them as abstract would break compatibility with existing subclasses that use the `override` modifier.
1 parent ff3f3ef commit 90a2a3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

std/haxe/io/Input.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ package haxe.io;
2929
All functions which read data throw `Eof` when the end of the stream
3030
is reached.
3131
**/
32-
class Input {
32+
abstract class Input {
3333
/**
3434
Endianness (word byte order) used when reading numbers.
3535

std/haxe/io/Output.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package haxe.io;
2828
methods. See `File.write` and `String.write` for two ways of creating an
2929
Output.
3030
**/
31-
class Output {
31+
abstract class Output {
3232
/**
3333
Endianness (word byte order) used when writing numbers.
3434

0 commit comments

Comments
 (0)