Commit 1778e19
committed
Fix dotnet/android build
Context: dotnet/android#9750
dotnet/android#9750 attempts to test #1302, and it
failed to build!
…/src/Mono.Android/obj/Release/net10.0/android-35/mcw/Java.Util.Jar.Pack200.cs(229,54): error CS1109:
Extension methods must be defined in a top level static class; IPackerExtensions is a nested class
Indeed, what we actually had was:
abstract partial class Pack200 {
public partial interface IPacker { /* … */ }
static partial class IPackerExtensions {
public static void Pack (this IPacker packer, Stream output, Stream input)
{
…
}
}
}
`static` classes containing extension methods must be top-level,
and `IPackerExtensions` is instead nested within `Pack200`.
Fix `generator` so that this doesn't happen.1 parent 40097db commit 1778e19
File tree
2 files changed
+2
-2
lines changed- tools/generator/SourceWriters
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments