Граф коммитов

4122 Коммитов

Автор SHA1 Сообщение Дата
ijklam 8b0900c78e
Disallow abstract member with access modifiers in sig file (#17802)
* Disallow abstract member with access modifiers in sig file

* release note

* format

* fix

* fix test

* use access modifier range to show error

* update tests

* update tests

* show both FS0531 and FS0561

---------

Co-authored-by: ijklam <43789618+Tangent-90@users.noreply.github.com>
Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
2024-10-24 14:10:10 +02:00
Edgar Gonzalez ee8af8a169
Fix Internal error when analysing incomplete inherit member (#17905)
* Internal error when analysing incomplete inherit member

* release notes

* release notes

* update syntax tree tests

* update baselines

* Update src/Compiler/Service/ServiceParseTreeWalk.fs

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* Update src/Compiler/Driver/GraphChecking/FileContentMapping.fs

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* Update src/Compiler/Service/ServiceParsedInputOps.fs

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* Update src/Compiler/Service/ServiceParsedInputOps.fs

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* update salsa tests

* try to debug the test using CI

* Fix tests?

---------

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: Petr <psfinaki@users.noreply.github.com>
2024-10-24 12:57:55 +02:00
Jakub Majocha 8ff644a44f
Preserve console encoding when using --utf8output switch without swapping console streams (#17761)
* do not modify stdout

* preserve original encoding

* Revert "preserve original encoding"

This reverts commit 9665470b8b.

* add a test

* wip

* fantomas

* add fsi test

* utf16

---------

Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
2024-10-23 23:05:25 +00:00
Edgar Gonzalez 315966454b
RFC FS-1033: Deprecate places where `seq` can be omitted (#17772)
* Treat `{ 1..10 }` as sequence expression

* deprecate { start..finish } and { start..step..finish }

* fix build part1

* 3873., chkDeprecatePlacesWhereSeqCanBeOmitted

* more tests

* release notes

* reorg seq tests

* Better check

* fix merge conflicts

* Add code fix for adding missing `seq` before `{…}`

* More tests

* Fmt

* update release notes

* more editor tests

---------

Co-authored-by: Brian Rourke Boll <brianrourkeboll@gmail.com>
2024-10-21 12:31:27 +02:00
Edgar Gonzalez 346a59f93e
Better error range for `struct` and restricted super types `inherit` (#17886)
* Better error range for struct inherit

* CheckSuperType

* release notes

* E_RestrictedSuperTypes

* neg6.bsl

* neg4.bsl
2024-10-16 14:39:58 +02:00
Jakub Majocha 7ebe5c5cd1
Asorted tests improvements (#17840)
* named test runs in ci

* unskip some old tests that actually do work

* use some tasks in core\controlMailbox

* remove timeouts from AsyncMemoize tests

* use temp dir

* remove unnecessary timeout

* improve timing and don't leave unobserved background tasks running

* remove another timeout

* disable flaky TryScan test in script

* Don't cancel MailboxProcessor body.

* fix test

* fix test

* catch TCE
2024-10-15 15:18:20 +02:00
Edgar Gonzalez 14ca0c0223
Better `inherit` error reporting (#17879)
* Better `inherit` error reporting

* update baselines

* format code

* Update tests

* release notes

* update tests
2024-10-15 14:41:36 +02:00
Tomas Grosup 3493c76775
Nullness bugfix :: could not assign null to member val property (#17845) 2024-10-15 10:59:40 +00:00
Martin 789b067ce1
Readability of lex.fsl (#17817)
* ifdef test added

* simplified #if lexing

* simplified #else, #endif

* no need to thread token through shouldStartLine

* removed HASH_IDENT, some renaming

* renamed the function 'newline' to 'incrLine' to differenciate it from the production 'newline'

* reverting removal of HASH_IDENT

* Ensure no change in behavior. Add test for it.

* Added a test that will fail if ever somebody else will try again to remove HASH_IDENT

* resolve merge issue
2024-10-10 11:22:28 +02:00
Esben Bjerre d121029ce8
Revamp decimal literal tests (#17836) 2024-10-09 16:51:45 +02:00
Martin 4fb264d736
make Assertions.withExitCode work (#17830)
* make Assertions.withExitCode work

* allow for different error message in desktop tests

* Still another check needed for the desktop error message
2024-10-09 13:47:00 +02:00
Edgar Gonzalez 69cc8a4cd9
Better error reporting for `use` (#17811) 2024-10-08 18:36:28 +02:00
Edgar Gonzalez cffc9bf737
Regression test for #14304 (#17839) 2024-10-08 12:54:52 +02:00
Edgar Gonzalez e017a716e0
Better error reporting for `return, yield, return! and yield!` (#17792)
* Better error reporting for `yield` and `yield!`

* format code

* Update SyntaxTree Tests

* release notes

* Update baselines

* update test

* update tests

* update tests

* update tests

* fix

* extra tests

* fantomas

* update tests

* update release notes

* more tests

* more updates

* more tests

* more tests

* more tests

* format code

* update tests

* more tests

---------

Co-authored-by: Petr <psfinaki@users.noreply.github.com>
2024-10-07 14:21:58 +02:00
Esben Bjerre b187b806f7
support decimal literal attribute (#17769) 2024-10-04 13:09:35 +02:00
Tomas Grosup f1b9addb02
Nullness bugfix - change isObjTy early returns in ConstraintSolver (#17757) 2024-10-04 12:58:30 +02:00
Jakub Majocha 7e9fd41d9e
Tests: remove dependency on CurrentDirectory ("test.ok" files) (#17815) 2024-10-03 11:05:45 +00:00
Tomas Grosup a902b21387
Rendering AllowsRefStruct for type parameters (#17706) 2024-09-30 16:16:59 +02:00
Jakub Majocha aa6fd83d71
Improve StartWithContinuations test in AsyncType tests (#17767) 2024-09-30 12:16:19 +02:00
Jakub Majocha d0d4c0fc3d
Remove unused `useSyntaxTreeCache` option (#17768) 2024-09-30 12:15:11 +02:00
Tomas Grosup 86b7584deb
Respect generic arity in method uniqueness (#17804) 2024-09-30 10:30:30 +02:00
Edgar Gonzalez 36b3ba56b8
Better error reporting for `CE` `match!` (#17789)
* Better error reporting for `CE`  `match!`

* release notes
2024-09-27 01:46:08 +02:00
Tomas Grosup 94f9b40a35
Bugfix for extension methods: Treat System.Private.CoreLib as a system lib for extension method search (#17799)
* Treat System.Private.CoreLib as a system lib for extension method search

* usessdkrefs is not a valid option for desktop compiler

* notes

* Revert "notes"

This reverts commit dca40aee91.

* Release notes back

* get rid of looksLikeSystemAssembly  in ilread, it is not needed

---------

Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
2024-09-26 22:07:52 +00:00
Petr 50542ca6a7
Remove a bunch of dead test data (#17771)
* Remove stuff

* up
2024-09-26 19:18:30 +02:00
Petr 67793bf7c8
Eradicate Nunit (#17782) 2024-09-26 18:04:17 +02:00
Petr 2812497595
Clean up FsUnit (#17781) 2024-09-26 17:54:14 +02:00
Edgar Gonzalez 6cdcc3c33c
Better error reporting for `CE` `do!` (#17779)
* Better error reporting for `CE` do bang

* Use SynExpr.DoBang

* update surface area

* format code

* release notes

* update tests

* Remove no intended case
2024-09-25 13:24:12 +02:00
Petr cd736c4959
Removing Nunit from utils (#17770)
* Migrate last Nunit tests to Xunit

* up

* up

* up

* Update TestLib.LanguageService.fs

* up

* up

* up

* Remove unused tests

* one more

* Salsa

* up

* up

* up

* Update FsUnit.fs

* Up

* Update AsyncTests.fs

---------

Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
2024-09-24 18:03:51 +02:00
Edgar Gonzalez 398d16d95c
Better ranges for CE `let!` and `use!` error reporting. (#17712) 2024-09-23 13:18:18 +02:00
Kevin Ransom (msft) 767b5ecfc3
reenable attribute usage (#17763) 2024-09-18 13:26:45 +02:00
Alex Berezhnykh f564cc9563
Make ILTypeDef interface calculation lazy (#17392)
* wip

* wip

* wip

* wip

* formatting

* release notes

---------

Co-authored-by: Petr <psfinaki@users.noreply.github.com>
Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
2024-09-18 12:30:30 +02:00
Matt Mitchell (.NET) 7edac8827c ExcludeFromSourceBuild->ExcludeFromSourceOnlyBuild 2024-09-16 13:51:21 -07:00
Kevin Ransom (msft) 848c0385b1
Fix17713 - Reverting PR - 17649 - Make the interaction between #line and #nowarn directives consistent (#17724)
* fix

* temp

* revert

* readme

---------

Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
2024-09-16 13:21:58 -07:00
Kevin Ransom (msft) f4860a4090
Fix 17731 - Regression, F# 9 compiler cannot find constructor for attribute (#17746)
* Fix 17731

* fantomas

---------

Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
2024-09-16 13:57:47 +02:00
Florian Verdonck e668b90e3c
Add trivia to Nullness nodes in SyntaxTree. (#17745) 2024-09-16 13:08:33 +02:00
Tomas Grosup 006f91ec0c
Bugfix : make sure nullness does not break XmlDoc info import for methods and types (#17741)
* Remove nullness signal in string-based type encoding of a symbol (since it is used for xmldoc lookup)

* release notes

* Discard unused values
2024-09-16 12:02:09 +02:00
Tomas Grosup b9df594e2a
Move attribute enforcement from v9 to preview (#17739) 2024-09-16 02:43:27 +02:00
Tomas Grosup 00d759a7bc
Nullness :: Bugfix for internal error when processing System.Nullable with nesting in C# (#17736) 2024-09-15 19:27:37 +02:00
Vlad Zarytovskii c91005731a
Fix #17719 (#17722)
* Fix #17719

* Only run test in netcoreapp
2024-09-13 16:05:40 +02:00
Brian Rourke Boll 91d5a0a454
Simple mapping optimization fixes (#17711) 2024-09-13 09:04:28 +00:00
Vlad Zarytovskii aea757f2cb
Update to .NET 9 rc1 (#17698)
* Update to .NET 9 rc1

* Update to .NET 9 rc1

* Remove some leftovers

* Workaround for msbuild 17.11 issue + realsig off

* Trimming tests

* Trimming tests

* revert realsig
2024-09-12 23:06:55 +02:00
Petr 3de720beaa
Remove non-existing file from a project (#17689)
Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>
2024-09-12 11:13:21 +02:00
Jakub Majocha c228ace3da
Run more tests in temporary directory (#17683)
* run tests in temp dirs

* rename

* update comment

* diff

* use single temp dir for compile

* unskip sdktest, naming

* refactor

* parametrize msbuild in SDKTests

* nicer
2024-09-11 14:39:45 +02:00
Edgar Gonzalez 92754eb9b7
Better `CE` error reporting when using `use!` with `and!` (#17671)
* Better `CE` error reporting when using `use!` with `and!`

* release notes

* use `and!` range instead of `use!`

* Add AndBangKeyword  trivia range

* Update tests

* surface area

* Update SyntaxTreeTests

---------

Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com>
2024-09-10 18:14:12 +02:00
Martin ac3d3c8bac
Make the interaction between #line and #nowarn directives consistent (#17649)
* fix the checkFile bug

* change the feature flag name

* updated xlf files

* Another small name change

---------

Co-authored-by: Petr <psfinaki@users.noreply.github.com>
2024-09-10 15:51:06 +02:00
Jakub Majocha bd1547539b
Better fix for core/quotes tests that broke after xUnit (#17665) 2024-09-09 13:52:43 +02:00
Edgar Gonzalez 7bfdd73a8e
Improve active pattern error reporting (#17666)
* Improve active pattern error reporting

* release notes.
2024-09-06 17:55:34 +02:00
Tomas Grosup 20e794dfbe
Address StackOverflowExceptions in typechecking (#17654) 2024-09-06 08:44:46 +00:00
Edgar Gonzalez 67f160cf37
Better error reporting for let bindings. (#17601)
* Use `SynPat` range for let binding errors

* update error range for tcAttributesAreNotPermittedOnLetBindings

* Include typars

* AP better error message

* fantomas

* Fix tests

* fantomas

* update tests

* Add a new compiler error for multi-case partial active patterns are not supported

* use tcPartialActivePattern and add more tests

* update tests

* Update src/Compiler/FSComp.txt

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* Update FSComp.txt

* Update src/Compiler/FSComp.txt

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>

* more tests

* release notes

* Update xlf

* reduce diff

* update tests

* baselines

* move `neg16.bsl` content to different tests

* move `neg16.bsl` content to different tests

* Update bsl

* Update last failing tests.

* Update last failing tests.

* FactForDESKTOP neg16

* fix bsl

---------

Co-authored-by: Brian Rourke Boll <brianrourkeboll@users.noreply.github.com>
Co-authored-by: psfinaki <psfinaki@users.noreply.github.com>
2024-09-05 13:23:15 +01:00
Eugene Auduchinok 5f936eb973
Parser: recover on unfinished isConst patterns (#17232)
* Parser: recover on unfinished isConst patterns

* Update baselines

* Update baselines

* Release notes

* Undo change

* Report error at EOF

* Update baselines

* Update baselines

* Fix broken F# build output symbol
2024-09-04 16:23:49 +02:00